Skip to content

Conversation

@tushar33
Copy link

@tushar33 tushar33 commented Sep 1, 2022

No description provided.

$xidentifier = $input->server->get('HTTP_X_IDENTIFIER', '', 'String');
$user = Factory::getUser();

if (!$user->authorise('core.admin') && $id != $user->id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be hardcoded to core.admin ? I suggest you check for the com_users create & edit permission based on if it's a create or edit user case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants